package com.ebs.md.fxmonitor.marketmonitor.esper;

/**
 * Perforce Revision:
 *  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/esper/PassiveHitsNMLBasicFactStatement.java $
 *  $Revision: #2 $  $Change: 115956 $  $DateTime: 2012/10/18 15:01:23 $  $Author: Arik.Sher $
 */

import java.sql.Timestamp;

import org.apache.log4j.Logger;

import com.ebs.md.container.esper.AbsStatement;
import com.ebs.md.fxmonitor.marketmonitor.config.IOutOfRegionQuotingConfig;


public class OutOfRegionQuotingSingleFactStatement
extends AbsStatement<IOutOfRegionQuotingConfig>
{
	static final protected Logger s_logger = Logger.getLogger(OutOfRegionQuotingSingleFactStatement.class);

	protected Timestamp currTimeStamp;
	

	@Override
	protected String createEplExpression() 
	{
		String str =
		String.format(eplExpressionText
				// 1. time window
				, "24 hours"
				// 2. passive quotes count
				, config.getNumberOfPassiveQuotesThreshold(getRegion()) 
				);
		return str;
	}
	
}
